import request from '@/utils/request'
// 获取数据
export const getRoleList = (params) => request.get('/sys/role', { params })
// 添加角色
export const addRoleList = (data) => request.post('/sys/role', data)
// 编辑角色
export const updateRole = (data) => request.put(`/sys/role/${data.id}`, data)
// 删除角色
export const delRole = (id) => request.delete(`/sys/role/${id}`)
